package com.food.model;

import java.math.BigDecimal;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel("食物实体")
public class Food {
    @ApiModelProperty("食物ID")
    private Integer foodId;
    
    @ApiModelProperty("食物名称")
    private String name;
    
    @ApiModelProperty("卡路里")
    private Integer calories;
    
    @ApiModelProperty("蛋白质")
    private BigDecimal protein;
    
    @ApiModelProperty("碳水化合物")
    private BigDecimal carbohydrates;
    
    @ApiModelProperty("脂肪")
    private BigDecimal fat;
    
    @ApiModelProperty("单位")
    private String unit;
    
    @ApiModelProperty("分类")
    private String category;
    
    @ApiModelProperty("食物图片URL")
    private String imageUrl;

    public Integer getFoodId() {
        return foodId;
    }

    public void setFoodId(Integer foodId) {
        this.foodId = foodId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getCalories() {
        return calories;
    }

    public void setCalories(Integer calories) {
        this.calories = calories;
    }

    public BigDecimal getProtein() {
        return protein;
    }

    public void setProtein(BigDecimal protein) {
        this.protein = protein;
    }

    public BigDecimal getCarbohydrates() {
        return carbohydrates;
    }

    public void setCarbohydrates(BigDecimal carbohydrates) {
        this.carbohydrates = carbohydrates;
    }

    public BigDecimal getFat() {
        return fat;
    }

    public void setFat(BigDecimal fat) {
        this.fat = fat;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }
} 